package com.stone.design.practice.lambda;

import android.util.Log;

/**
 * @author Stone
 * @version V1.0
 * @description: lambda 表达式块 和语句表达式
 * @date 7/10/18 11:04
 * @email redsstone@163.com
 */
public class Test {
    public static void main(String[] args) {
        new TestClass((i, b) -> {

            if (i == 2) {
                System.out.println("dd:" + b);
            }

        }).startTest(4);

        TestClass testClass = new TestClass((a, b) -> System.out.println(a));

        testClass.setITest((a, b) -> System.out.println(a));
       //TestClass testClass =  new TestClass((i, b) -> System.out.println("dd:" + b)).startTest(4);
    }
}
